<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles"
	prefix="tiles"%>

<rich:panel header="#{messages['prospect.individual.member.doc.check.list']}">
	<h:panelGrid>
		<h:outputText value="#{errorBean.errorMessage}" styleClass="error"></h:outputText>
	</h:panelGrid>

	<h:panelGrid width="100%">
		<h:outputText value="#{messages['membership.info']}"
			styleClass="sub_header" />
	</h:panelGrid>

	<t:panelGrid columns="2" columnClasses="standardTable_ColumnLeft_20,standardTable_ColumnLeft_80" width="100%">

		<h:panelGroup>
			<h:outputLabel for="salutation" value="#{messages['salutation']}"
				styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
			<t:outputText id="salutation"  
				styleClass="standardText"
				value="#{adminProspectDocCheckListBean.memberInd.salutation.desc}"></t:outputText>
		</h:panelGroup>

		<h:panelGroup>
			<h:outputLabel for="name" value="#{messages['name']}"
				styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
			<t:outputText id="name"  
				styleClass="standardText"
				value="#{adminProspectDocCheckListBean.memberInd.nameAsIcPassport}"></t:outputText>
		</h:panelGroup>
		
	   <h:panelGroup>
	    <h:outputLabel for="email" value="#{messages['email']}" styleClass="standardText_Label" />
	   </h:panelGroup>
	   <h:panelGroup>
	   	<t:outputText id="email"   styleClass="standardText" value="#{adminProspectDocCheckListBean.memberInd.email}">
	   	</t:outputText>
	   </h:panelGroup>

	</t:panelGrid>

	<h:panelGrid width="100%">
		<h:outputText value="#{messages['personal.info']}"
			styleClass="sub_header" />
	</h:panelGrid>

	<t:panelGrid columns="2" columnClasses="standardTable_ColumnLeft_20,standardTable_ColumnLeft_80" width="100%">

		<h:panelGroup>
			<h:outputLabel for="dateofbirth"
				value="#{messages['date.of.birth']}"
				styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
			<t:outputText id="dateofbirth"   styleClass="standardText" value="#{adminProspectDocCheckListBean.memberInd.dob}">
	   	</t:outputText>
		</h:panelGroup>

		<h:panelGroup>
			
			<h:outputLabel for="icpassportno"
				value="#{messages['ic.passport.no']}"
				styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
			<t:outputText id="icpassportno"  
				 styleClass="standardText"
				value="#{adminProspectDocCheckListBean.memberInd.newIcNo}">
			</t:outputText>
		</h:panelGroup>


		<h:panelGroup>
			<h:outputLabel for="sex" value="#{messages['sex']}"
				styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
			<t:outputText id="sex"  
				 styleClass="standardText"
				value="#{adminProspectDocCheckListBean.memberInd.genderLabel}">
			</t:outputText>
		</h:panelGroup>

		<h:panelGroup>
			<h:outputLabel for="maritalstatus"
				value="#{messages['marital.status']}"
				styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
			<t:outputText id="maritalstatus"  
				 styleClass="standardText"
				value="#{adminProspectDocCheckListBean.memberInd.maritalStatusLabel}">
			</t:outputText>
		</h:panelGroup>

		<h:outputLabel value="#{messages['no.of.children']}"
			styleClass="standardText_Label" />
		<h:panelGroup>
			<t:outputText id="noOfChild" 
				styleClass="standardText" value="#{adminProspectDocCheckListBean.memberInd.child}">
			</t:outputText>
		</h:panelGroup>


		<h:panelGroup>
			<h:outputLabel for="race" value="#{messages['race']}"
				styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
			<t:outputText id="race" 
				styleClass="standardText" value="#{adminProspectDocCheckListBean.memberInd.race.desc}">
			</t:outputText>
		</h:panelGroup>

		<h:panelGroup>
			<h:outputLabel for="nationality" value="#{messages['nationality']}"
				styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
			<t:outputText id="nationality"  styleClass="standardText"
				value="#{adminProspectDocCheckListBean.memberInd.nationality}"></t:outputText>
		</h:panelGroup>
	</t:panelGrid>

	<h:panelGrid width="100%">
		<h:outputText value="#{messages['resident.info']}"
			styleClass="sub_header" />
	</h:panelGrid>

	<t:panelGrid columns="2" columnClasses="standardTable_ColumnLeft_20,standardTable_ColumnLeft_80" width="100%">
	
		<h:panelGroup>
			
			<h:outputLabel for="Address1"
				value="#{messages['residential.address']}"
				styleClass="standardText_Label" />
		</h:panelGroup>
		
		<t:outputText id="Address1"    
			styleClass="standardText"
			value="#{adminProspectDocCheckListBean.memberInd.resAddress1}"></t:outputText>
		<h:panelGroup></h:panelGroup>
		
		<h:panelGroup>
			<t:outputText id="Address2" 
				styleClass="standardText"
				value="#{adminProspectDocCheckListBean.memberInd.resAddress2}"></t:outputText>
		</h:panelGroup>
		
		<h:panelGroup>
			<h:outputLabel for="Postcode"
				value="#{messages['residential.postcode']}"
				styleClass="standardText_Label" />
		</h:panelGroup>
		<t:outputText id="Postcode"   
			styleClass="standardText"
			value="#{adminProspectDocCheckListBean.memberInd.resPostcode}">
		</t:outputText>

		<h:panelGroup>
			<h:outputLabel for="Country"
				value="#{messages['residential.country']}"
				styleClass="standardText_Label" />
		</h:panelGroup>
		<t:outputText id="Country"   
			styleClass="standardText"
			value="#{adminProspectDocCheckListBean.memberInd.resCountry.desc}">
		</t:outputText>
		
		<h:panelGroup>
			
			<h:outputLabel for="state" value="#{messages['residential.state']}"
				styleClass="standardText_Label" />
		</h:panelGroup>
		<t:outputText id="state"   
			styleClass="standardText"
			value="#{adminProspectDocCheckListBean.memberInd.resState.desc}">
		</t:outputText>
		
		<h:panelGroup>
		<h:outputLabel for="City" value="#{messages['residential.city']}"
			styleClass="standardText_Label" />
		</h:panelGroup>
		<t:outputText id="City"  
			styleClass="standardText" value="#{adminProspectDocCheckListBean.memberInd.resCity}"></t:outputText>

		
		<h:outputLabel for="Telephone" value="#{messages['telephone.no']}"
			styleClass="standardText_Label" />
		<t:outputText id="Telephone" 
			 styleClass="standardText"
			value="#{adminProspectDocCheckListBean.memberInd.resTelNo}">
		</t:outputText>
		
		
		<h:outputLabel for="Handphone" value="#{messages['handphone']}"
			styleClass="standardText_Label" />
		<t:outputText id="Handphone" 
			 styleClass="standardText"
			value="#{adminProspectDocCheckListBean.memberInd.hpNo}">
		</t:outputText>
	</t:panelGrid>
	
	<h:panelGrid width="100%">
		<h:outputText value="#{messages['company.info']}"
			styleClass="sub_header" />
	</h:panelGrid>
	
	<t:panelGrid id="compInfo" columns="2" columnClasses="standardTable_ColumnLeft_20,standardTable_ColumnLeft_80" width="100%">
		
		<h:panelGroup>
			<h:outputLabel for="CompanyName" value="#{messages['company.name']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<t:outputText id="CompanyName"   styleClass="standardText" value="#{adminProspectDocCheckListBean.memberInd.compName}"></t:outputText>
   
	    <h:panelGroup>
		    <h:outputLabel for="Designation" value="#{messages['designation']}" styleClass="standardText_Label" />
	    </h:panelGroup>
	    <h:panelGroup>
	    	<t:outputText id="Designation"  styleClass="standardText" value="#{adminProspectDocCheckListBean.memberInd.designation}"></t:outputText>
	    </h:panelGroup>
	    
	    <h:panelGroup>
		    <h:outputLabel for="GrossAnnualIncome" value="#{messages['gross.annual.income']}" styleClass="standardText_Label" />
	    </h:panelGroup>
	    <h:panelGroup>
	    	<t:outputText id="GrossAnnualIncome"   styleClass="standardText" value="#{adminProspectDocCheckListBean.memberInd.grossAnnIncome}"></t:outputText>
	    </h:panelGroup>
	    
		<h:panelGroup>
	    	<h:outputLabel for="CompanyAdress1" value="#{messages['company.address']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<t:outputText id="CompanyAdress1"   styleClass="standardText" value="#{adminProspectDocCheckListBean.memberInd.compAddress1}"></t:outputText>
	    
	    <h:panelGroup></h:panelGroup>
	    <h:panelGroup>
	    	<t:outputText id="CompanyAdress2"  styleClass="standardText" value="#{adminProspectDocCheckListBean.memberInd.compAddress2}"></t:outputText>
	    </h:panelGroup>
	    
	    <h:panelGroup>
	    	<h:outputLabel for="CompanyPostcode" value="#{messages['company.postcode']}" styleClass="standardText_Label" />
	    </h:panelGroup>
    	<t:outputText id="CompanyPostcode"    styleClass="standardText" value="#{adminProspectDocCheckListBean.memberInd.compPostcode}">
    	</t:outputText>
	    
	    <h:panelGroup>
	    <h:outputLabel for="CompanyCountry" value="#{messages['company.country']}" styleClass="standardText_Label" />
	    </h:panelGroup>
    	<t:outputText id="CompanyCountry"   
			styleClass="standardText"
			value="#{adminProspectDocCheckListBean.memberInd.compCountry.desc}">
		</t:outputText>
    	
	    <h:panelGroup>
	   		<h:outputLabel for="CompanyState" value="#{messages['company.state']}" styleClass="standardText_Label" />
	    </h:panelGroup>
    	<t:outputText id="CompanyState"   
			styleClass="standardText"
			value="#{adminProspectDocCheckListBean.memberInd.compState.desc}">
		</t:outputText>
    	
	    <h:panelGroup>
	    	<h:outputLabel for="CompanyCity" value="#{messages['company.city']}" styleClass="standardText_Label" />
	    </h:panelGroup>
        <t:outputText id="CompanyCity"   styleClass="standardText" value="#{adminProspectDocCheckListBean.memberInd.compCity}"></t:outputText>
	    
	    
	    <h:outputLabel for="TelephoneNoOffice" value="#{messages['telephone.no']}" styleClass="standardText_Label" />
    	<t:outputText id="TelephoneNoOffice"  styleClass="standardText" value="#{adminProspectDocCheckListBean.memberInd.compTelNo}">
    	</t:outputText>
	    
	    
	    <h:outputLabel for="FaxNoOffice" value="#{messages['fax.no']}" styleClass="standardText_Label" />
    	<t:outputText id="FaxNoOffice"  styleClass="standardText" value="#{adminProspectDocCheckListBean.memberInd.compFaxNo}">
    	</t:outputText>
	</t:panelGrid>
	
	<h:panelGrid width="100%">
		<h:outputText value="#{messages['mailing.info']}"
			styleClass="sub_header" />
	</h:panelGrid>
	
	<t:panelGrid id="mailInfo" columns="2" columnClasses="standardTable_ColumnLeft_20,standardTable_ColumnLeft_80" width="100%">
		
		
		<h:panelGroup>
			<h:outputLabel for="MailAddress1" value="#{messages['mail.address']}" styleClass="standardText_Label" />
		</h:panelGroup>
	    <t:outputText id="MailAddress1"     styleClass="standardText" value="#{adminProspectDocCheckListBean.memberInd.mailAddress1}"></t:outputText>
	     
	     
	    <h:panelGroup></h:panelGroup>
	    <h:panelGroup>
	    	<t:outputText id="MailAddress2"   styleClass="standardText" value="#{adminProspectDocCheckListBean.memberInd.mailAddress2}"></t:outputText>
	    </h:panelGroup>
	    
	    
	    <h:panelGroup>
			<h:outputLabel for="MailPostcode" value="#{messages['mail.postcode']}" styleClass="standardText_Label" />
		</h:panelGroup>
	    <t:outputText id="MailPostcode"     styleClass="standardText" value="#{adminProspectDocCheckListBean.memberInd.mailPostcode}">
	    </t:outputText>
	    	
	     <h:panelGroup>
			 <h:outputLabel for="MailCity" value="#{messages['mail.city']}" styleClass="standardText_Label" />
		</h:panelGroup>	
		<t:outputText  id="MailCity"   styleClass="standardText" value="#{adminProspectDocCheckListBean.memberInd.mailCity}"></t:outputText>
	    
	     <h:panelGroup>
			 <h:outputLabel for="MailCountry" value="#{messages['mail.country']}" styleClass="standardText_Label" />
		</h:panelGroup>
    	<t:outputText id="MailCountry"   
			styleClass="standardText"
			value="#{adminProspectDocCheckListBean.memberInd.mailCountry.desc}">
		</t:outputText>
	    
	    <h:panelGroup>
			 <h:outputLabel for="MailState" value="#{messages['mail.state']}" styleClass="standardText_Label" />
		</h:panelGroup>
    	<t:outputText id="MailState"   
			styleClass="standardText"
			value="#{adminProspectDocCheckListBean.memberInd.mailState.desc}">
		</t:outputText>
	    
	   
	</t:panelGrid>
	   
	   <rich:spacer height="30"></rich:spacer>
	<h:panelGrid width="100%">
		<h:outputText value="#{messages['document.check.list']}"
			styleClass="sub_header" />
	</h:panelGrid>
	
	<t:panelGrid columns="2" columnClasses="standardTable_ColumnLeft_20,standardTable_ColumnLeft_80" width="100%">
	<h:panelGroup>
	    	<h:outputText value="*" styleClass="standardText_Mandatory" />	
		    <h:outputLabel value="#{messages['compulsary.documents']}" styleClass="standardText_Label" />
	    </h:panelGroup>
	    <t:dataTable id="noncomdoc" var="doc" value="#{adminProspectDocCheckListBean.mandList}" rowIndexVar="rowNo" styleClass="standardTable"
            headerClass="standardTable_Header" width="100%">
	    	
	    	<t:column>
	    		<f:facet name="header">
	    			<t:outputText value="#{messages['row.number']}"></t:outputText>
	    		</f:facet>
	    			<t:outputText value="#{rowNo+1}"></t:outputText>
	    	</t:column>
	    	
	    	<t:column>
	    		<f:facet name="header">
	    			<t:outputText value="#{messages['documents']}"></t:outputText>
	    		</f:facet>
	    			<t:outputText value="#{doc.docCheckList.title}"></t:outputText>
	    	</t:column>
	    	
	    	<t:column>
	    		<f:facet name="header">
	    			<t:outputText value="#{messages['received']}"></t:outputText>
	    		</f:facet>
	    		<t:selectBooleanCheckbox value="#{doc.receivedCheck}"></t:selectBooleanCheckbox>
	    	</t:column>
	    	
	    	<t:column>
	    		<f:facet name="header">
	    			<t:outputText value="#{messages['date']}"></t:outputText>
	    		</f:facet>
	    		<t:inputCalendar
				monthYearRowClass="yearMonthHeader" weekRowClass="weekHeader" 
				currentDayCellClass="currentDayCell" value="#{doc.receivedDate}"
				renderAsPopup="true" popupTodayString="#{messages['popup.today']}"
				popupWeekString="#{messages['popup.week']}" popupDateFormat="dd/MM/yyyy"
				renderPopupButtonAsImage="true"
				styleClass="standardText"
	    	>
	    	</t:inputCalendar>
	    	</t:column>
	    	
	    </t:dataTable>
	    
	     <h:panelGroup>
	    	<h:outputText value="*" styleClass="standardText_Mandatory" />	
		    <h:outputLabel value="#{messages['non.compulsary.documents']}" styleClass="standardText_Label" />
	    </h:panelGroup>
	    <t:dataTable id="comdoc" var="doc1" value="#{adminProspectDocCheckListBean.notmandList}" rowIndexVar="rowNo" styleClass="standardTable"
            headerClass="standardTable_Header" width="100%">
	    	
	    	<t:column>
	    		<f:facet name="header">
	    			<t:outputText value="#{messages['row.number']}"></t:outputText>
	    		</f:facet>
	    			<t:outputText value="#{rowNo+1}"></t:outputText>
	    	</t:column>
	    	
	    	<t:column>
	    		<f:facet name="header">
	    			<t:outputText value="#{messages['documents']}"></t:outputText>
	    		</f:facet>
	    			<t:outputText value="#{doc1.docCheckList.title}"></t:outputText>
	    	</t:column>
	    	
	    	<t:column>
	    		<f:facet name="header">
	    			<t:outputText value="#{messages['received']}"></t:outputText>
	    		</f:facet>
	    		<t:selectBooleanCheckbox value="#{doc1.receivedCheck}"></t:selectBooleanCheckbox>
	    	</t:column>
	    	
	    	<t:column>
	    		<f:facet name="header">
	    			<t:outputText value="#{messages['date']}"></t:outputText>
	    		</f:facet>
	    		<t:inputCalendar
				monthYearRowClass="yearMonthHeader" weekRowClass="weekHeader" 
				currentDayCellClass="currentDayCell" value="#{doc1.receivedDate}"
				renderAsPopup="true" popupTodayString="#{messages['popup.today']}"
				popupWeekString="#{messages['popup.week']}" popupDateFormat="dd/MM/yyyy"
				renderPopupButtonAsImage="true"
				styleClass="standardText"
	    	>
	    	</t:inputCalendar>
	    	</t:column>
	    	
	    </t:dataTable>
	</t:panelGrid>
	
		<t:panelGrid columns="2" columnClasses="standardTable_ColumnLeft_20,standardTable_ColumnLeft_80" width="100%">
			<t:outputText></t:outputText>
			<t:panelGrid columns="3">
				<h:commandButton styleClass="button" action="#{adminProspectDocCheckListBean.completeCheckAction}" value="#{messages['complete']}" ></h:commandButton>
				<h:commandButton styleClass="button" action="#{adminProspectDocCheckListBean.checkAction}" value="#{messages['check']}" ></h:commandButton>
				<h:commandButton styleClass="button" action="#{adminProspectDocCheckListBean.backAction}" value="#{messages['cancel']}" immediate="true"></h:commandButton>
			</t:panelGrid>
		</t:panelGrid>
	
</rich:panel>

